package com.ziyueyuwen.xiniao.service.baseservice.area.impl;

import com.ziyueyuwen.xiniao.bean.area.ZyArea;
import com.ziyueyuwen.xiniao.dao.ZyAreaMapper;
import com.ziyueyuwen.xiniao.service.baseservice.area.AreaBaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by wancheng on 2019/4/9.
 */
@Service
public class AreaBaseServiceImpl implements AreaBaseService {

    @Autowired
    ZyAreaMapper zyAreaMapper;

    @Override
    public List<ZyArea> getAreaOfStudent() {
        ZyArea param = new ZyArea();
        param.setIfHasStudent(true);
        return zyAreaMapper.select(param);
    }
}
